package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/9/28 0028
 **/
@Data
@ApiModel("编码登记地址对象")
public class CodeRegisterAddressVo {
    @NotBlank(message = "地址-省不能为空")
    @Length(max = 50, message = "地址-省长度限制 50 个字符以内")
    @ApiModelProperty(value = "地址-省", required = true)
    private String province;

    @NotBlank(message = "地址-市不能为空")
    @Length(max = 50, message = "地址-市长度限制 50 个字符以内")
    @ApiModelProperty(value = "地址-市", required = true)
    private String city;

    @NotBlank(message = "地址-区/县不能为空")
    @Length(max = 50, message = "地址-区/县长度限制 50 个字符以内")
    @ApiModelProperty(value = "地址-区/县", required = true)
    private String area;

    @Length(max = 50, message = "地址-镇长度限制 50 个字符以内")
    @ApiModelProperty(value = "地址-镇")
    private String town;

    @NotBlank(message = "地址-省不能为空")
    @Length(max = 200, message = "地址-详细地址长度限制 200 个字符以内")
    @ApiModelProperty(value = "地址-详细地址", required = true)
    private String address;
}
